<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>

	<body>
	</body>
	<script type="text/javascript">
		//判断是否有这个属性
		Object.prototype.ishave = function(key){
		    if(Object.hasOwnProperty(key) && Object[key]){
		        return true;
		    }else{
		        return false;
		    }
		}
		var data_json = {
			"name": "chengzhanpeng",
			"sex": "man"
		}
		console.log(data_json.ishas("asdua"));
	</script>

</html>